$OpenBSD: patch-src_calibre_gui2___init___py,v 1.8 2017/05/15 14:37:41 sthen Exp $

- enable --detach, used by some .desktop files

Index: src/calibre/gui2/__init__.py
--- src/calibre/gui2/__init__.py.orig
+++ src/calibre/gui2/__init__.py
@@ -909,7 +909,7 @@ def load_builtin_fonts():
 
 
 def setup_gui_option_parser(parser):
-    if islinux:
+    if islinux or isbsd:
         parser.add_option('--detach', default=False, action='store_true',
                           help=_('Detach from the controlling terminal, if any (Linux only)'))
 
